// +FHDR------------------------------------------------------------
//                 Copyright (c) 2024 NOVAUTO.
//                       ALL RIGHTS RESERVED
// -----------------------------------------------------------------
// Filename      : base_test.sv
// Author        : ICer
// Created On    : 2024-02-05 11:03
// Last Modified : 2024-02-05 11:32 by ICer
// -----------------------------------------------------------------
// Description:
//
//
// -FHDR------------------------------------------------------------

class base_test;

  environment env;
  pkt_data pkt;

	extern function new(input virtual pkt_if_pack bus);
	extern virtual task build();
	extern virtual task run();

endclass: base_test

function base_test::new(input virtual pkt_if_pack bus);
	$display("At %0t, [ENV NOTE]: base_test::new() start!", $time);
  env = new(bus);
  pkt = pkt_data::new();
endfunction: new

task base_test::build();
  env.build();
	env.gen.send_num = 10;
  env.gen.pkt = this.pkt;
endtask: build

task base_test::run();
  env.run();
endtask: run
